function [ma]=change(material,rts)
sq=[1,3,5,7,2,4,6,8];
[m,n]=size(material);
count=1;
for i=1:m
    flag=0;
    for j=1:7
        if material(i,j)==0
            flag=1;
            break;
        end        
    end
    if flag==0
        ma(count,:)=material(i,:);
        ma(count,1)=sq(1,ma(count,1));
        ma(count,4)=sq(1,ma(count,4));
        count=count+1;
    end
end